/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Ext.onReady(function(){
    Ext.QuickTips.init();
    
    Ext.form.Field.prototype.msgTarget = 'side';

    var bd = Ext.getBody();
    
    //bd.createChild({tag: 'h2', html: 'Form 2 - Adding fieldsets'});

    var fsf = new Ext.FormPanel({
        labelWidth: 150, // label settings here cascade unless overridden
        frame:false,
        bodyStyle:'padding:15px 15px 0',
        width: 500,
        height:300,
        items: [{
            xtype:'fieldset',
            title: '指标分类',
          //  autoHeight:true,
         //   defaults: {},
            defaultType: 'textfield',
            items :[{
                fieldLabel: '分类编号',
                name: 'cata_id',
                disabled:true,
                id:'cata_id'
            },{
                    fieldLabel: '分类编码',
                    name: 'cata_no',
                    id: 'cata_no'
                },{
                    fieldLabel: '分类描述',
                    name: 'cata_name',
                    id: 'cata_name'
                },{
                    fieldLabel: '父类编号',
                    name: 'parent_id',
                    id: 'parent_id',
                    disabled:true,
                    value :'0'
                }
            ]
        }]
    });

    fsf.render("panelDiv");
});

